import request from "@/utils/request";

export function savedoctor(data) {
  return request({
    url: "/sinohis/pension/staff/doctor/add",
    method: "post",
    data
  });
}
//分页条件查询医生信息

export function search(params) {
  return request({
    url: "/sinohis/pension/staff/doctor/page/condition",
    method: "get",
    params

  });

}

//修改医生信息
export function revesedoctor(data) {
  return request({
    url: "/sinohis/pension/staff/doctor/modity",
    method: "post",
    data

  });

}
//禁用医生
export function disable(data) {
  return request({
    url: "/sinohis/pension/staff/doctor/disable",
    method: "put",
    data
  });
}
//启用医生

export function enabled(data) {
  return request({
    url: "/sinohis/pension/staff/doctor/enable",
    method: "put",
    data
  });
}
//查询机构下可用与分配医生的用户信息
export function searchdoctor(params) {
  return request({
    url: "/sinohis/pension/sys/user/all/organ/doctor/"+params.organNumber,
    method: "get",
    params

  });

}
